package cn.edu.xmu.wnw.dao;

import java.util.List;

import org.springframework.context.ApplicationContext;

import cn.edu.xmu.wnw.pojo.Message;

public interface MessageDAO {

	public void initDao();

	public void save(Message transientInstance);

	public void delete(Message persistentInstance);

	public Message findById(java.lang.Integer id);

	public List findByExample(Message instance);

	public List findByProperty(String propertyName, Object value);

	public List findBySender(Object sender);

	public List findByContent(Object content);

	public List findByReceipt(Object receipt);

	public List findAll();

	public Message merge(Message detachedInstance);

	public void attachDirty(Message instance);

	public void attachClean(Message instance);

	public MessageDAO getFromApplicationContext(ApplicationContext ctx);
}